OpenCL Programming Guide (Brenda Evans' Library) by Aaftab Munshi & Benedict R. Gaster & Timothy G. Mattson & James Fung & Dan Ginsburg

OpenCL Programming Guide (Brenda Evans' Library) by Aaftab Munshi & Benedict R. Gaster & Timothy G. Mattson & James Fung & Dan Ginsburg

Author:Aaftab Munshi & Benedict R. Gaster & Timothy G. Mattson & James Fung & Dan Ginsburg
Language: eng
Format: epub
Publisher: Addison-Wesley
Published: 2012-09-30T16:00:00+00:00


Comm2 = clCreateCommandQueue(context2, device_id2,

CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE, &err);

// Set up user event to be used as an execution trigger

cl_event uevent = clCreateUserEvent(context2, &err);

// Set up memory objs, programs, kernels and enqueue a DAG spanning

// two command-queues (only the last few "enqueues" are shown).

err = clEnqueueNDRangeKernel(Comm1, kernel1, 1, NULL, &global,

&local,0, NULL, &k_events[1]);

err = clEnqueueNDRangeKernel(Comm1, kernel2, 1, NULL, &global,

&local, 0, NULL, &k_events[2]);



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.